package cjlu.ea.h.controller;


import cjlu.ea.h.common.R;
import cjlu.ea.h.entity.Bjxx;
import cjlu.ea.h.entity.ByszgshbLsb;
import cjlu.ea.h.entity.vo.statistics.F1011Vo;
import cjlu.ea.h.entity.vo.statistics.F1012Vo;
import cjlu.ea.h.entity.vo.statistics.F1013Vo;
import cjlu.ea.h.entity.vo.statistics.F1014Vo;
import cjlu.ea.h.service.F101ByszgshbLsbService;
import cjlu.ea.h.service.StatisticsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@Slf4j
@CrossOrigin
@RequestMapping("/h/statistics")
public class StatisticsController {

    @Autowired
    StatisticsService statisticsService;

    @PostMapping("getF1011")
    public R F1011Statistics(@RequestBody Bjxx bjxx){

        List<F1011Vo> list = statisticsService.F1011Statistics(bjxx);
        return R.ok().data("list",list);
    }

    @PostMapping("getF1012")
    public R F1012Statistics(@RequestBody Bjxx bjxx){

        List<F1012Vo> list = statisticsService.F1012Statistics(bjxx);
        return R.ok().data("list",list);
    }

    @PostMapping("getF1013List")
    public R F1013List(@RequestBody Bjxx bjxx){

        List<ByszgshbLsb> list = statisticsService.F1013List(bjxx);
        return R.ok().data("list",list);
    }

    @PostMapping("getF1013")
    public R F1013Statistics(@RequestBody Bjxx bjxx){

        List<F1013Vo> list = statisticsService.F1013Statistics(bjxx);
        return R.ok().data("list",list);
    }

    @PostMapping("getF1014List")
    public R F1014List(@RequestBody Bjxx bjxx){

        List<ByszgshbLsb> list = statisticsService.F1014List(bjxx);
        return R.ok().data("list",list);
    }

    @PostMapping("getF1014")
    public R F1014Statistics(@RequestBody Bjxx bjxx){

        List<F1014Vo> list = statisticsService.F1014Statistics(bjxx);
        return R.ok().data("list",list);
    }

    @PostMapping("getF1015List")
    public R F1015List(@RequestBody Bjxx bjxx){

        List<ByszgshbLsb> list = statisticsService.F1015List(bjxx);
        return R.ok().data("list",list);
    }


}
